Next: Remote programs, Previous: Connection caching, Up: Configuration [Contents][Index]
For more precise customization, parameters specified by
tramp-methods can be overwritten manually.
Set tramp-connection-properties to manually
override tramp-methods. Properties in this list are
in the form (regexp property
value). regexp matches remote file
names. Use nil to match all. property is
the property’s name, and value is the
property’s value.
property is any method specific parameter contained
in tramp-methods. The parameter key in
tramp-methods is a symbol name
tramp-<foo>. To overwrite that property, use
the string ‘<foo>’ for
property. For example, this changes the remote
shell:
(add-to-list 'tramp-connection-properties
(list (regexp-quote "/ssh:user@randomhost.your.domain:")
"remote-shell" "/bin/ksh"))
(add-to-list 'tramp-connection-properties
(list (regexp-quote "/ssh:user@randomhost.your.domain:")
"remote-shell-login" '("-")))
The parameters tramp-remote-shell and
tramp-remote-shell-login in
tramp-methods now have new values for the remote
host.
property could also be any property found in
tramp-persistency-file-name.
To get around how restricted shells randomly drop connections, set the special property ‘busybox’. For example:
(add-to-list 'tramp-connection-properties
(list (regexp-quote "/ssh:user@randomhost.your.domain:")
"busybox" t))